﻿
using System;
using System.Data;
using System.Data.SqlClient;
namespace Model
{
	
	/// <summary>	 
	/// 在线支付
	/// </summary>
	public class DbPayOnlines
	{ 
		#region DbPayOnlines
		/// <summary>
		/// 
		/// </summary>
		public DbPayOnlines()
		{
		}
		/// <summary>	 
		/// 
		/// </summary>
		public DbPayOnlines(Int32 poId)
		{
			this.poId = poId;
		
		}
		/// <summary>	 
		/// 
		/// </summary>		
		public DbPayOnlines(DataRow dr)
		{
			int.TryParse(Convert.ToString(dr["poId"]),out poId);
			this.poCode = Convert.ToString(dr["poCode"]);
			this.poName = Convert.ToString(dr["poName"]);
			this.poUser = Convert.ToString(dr["poUser"]);
			this.poPartnerId = Convert.ToString(dr["poPartnerId"]);
			this.poKeys = Convert.ToString(dr["poKeys"]);
			this.poUrl = Convert.ToString(dr["poUrl"]);
			this.poLogo = Convert.ToString(dr["poLogo"]);
			this.poStatus = Convert.ToInt16(dr["poStatus"]);
			if(dr["poAddTime"] != DBNull.Value)
				this.poAddTime = Convert.ToDateTime(dr["poAddTime"]);
			this.poType = Convert.ToInt16(dr["poType"]);
			this.poReturnUrl = Convert.ToString(dr["poReturnUrl"]);
			this.poFee = Convert.ToDecimal(dr["poFee"]);
			this.poNotifyUrl = Convert.ToString(dr["poNotifyUrl"]);
			
		}
		#endregion
		
		
		#region PoId
		private Int32 poId;
		/// <summary>	 
		/// 
		/// AutoInc
		/// PK
		/// </summary>
		public Int32 PoId
		{
			get{ return poId; }
			set{ poId= value; }
		}
		#endregion
		
		#region PoCode
		private System.String poCode;
		/// <summary>	 
		/// 第三方代号
		/// </summary>
		public System.String PoCode
		{
			get{ return poCode; }
			set{ poCode= value; }
		}
		#endregion
		
		#region PoName
		private System.String poName;
		/// <summary>	 
		/// 第三方名称
		/// </summary>
		public System.String PoName
		{
			get{ return poName; }
			set{ poName= value; }
		}
		#endregion
		
		#region PoUser
		private System.String poUser;
		/// <summary>	 
		/// 第三方帐户
		/// </summary>
		public System.String PoUser
		{
			get{ return poUser; }
			set{ poUser= value; }
		}
		#endregion
		
		#region PoPartnerId
		private System.String poPartnerId;
		/// <summary>	 
		/// 合作伙伴ID
		/// </summary>
		public System.String PoPartnerId
		{
			get{ return poPartnerId; }
			set{ poPartnerId= value; }
		}
		#endregion
		
		#region PoKeys
		private System.String poKeys;
		/// <summary>	 
		/// 公钥
		/// </summary>
		public System.String PoKeys
		{
			get{ return poKeys; }
			set{ poKeys= value; }
		}
		#endregion
		
		#region PoUrl
		private System.String poUrl;
		/// <summary>	 
		/// 第三方处理地址
		/// </summary>
		public System.String PoUrl
		{
			get{ return poUrl; }
			set{ poUrl= value; }
		}
		#endregion
		
		#region PoLogo
		private System.String poLogo;
		/// <summary>	 
		/// LOGO图片
		/// </summary>
		public System.String PoLogo
		{
			get{ return poLogo; }
			set{ poLogo= value; }
		}
		#endregion
		
		#region PoStatus
		private Int16 poStatus;
		/// <summary>	 
		/// 状态
		/// </summary>
		public Int16 PoStatus
		{
			get{ return poStatus; }
			set{ poStatus= value; }
		}
		#endregion
		
		#region PoAddTime
		private DateTime poAddTime;
		/// <summary>	 
		/// 加入时间
		/// </summary>
		public DateTime PoAddTime
		{
			get{ return poAddTime; }
			set{ poAddTime= value; }
		}
		#endregion
		
		#region PoType
		private Int16 poType;
		/// <summary>	 
		/// 第三方支付类型
		/// </summary>
		public Int16 PoType
		{
			get{ return poType; }
			set{ poType= value; }
		}
		#endregion
		
		#region PoReturnUrl
		private System.String poReturnUrl;
		/// <summary>	 
		/// 处理返回页面
		/// </summary>
		public System.String PoReturnUrl
		{
			get{ return poReturnUrl; }
			set{ poReturnUrl= value; }
		}
		#endregion
		
		#region PoFee
		private Decimal poFee;
		/// <summary>	 
		/// 支付手续费
		/// </summary>
		public Decimal PoFee
		{
			get{ return poFee; }
			set{ poFee= value; }
		}
		#endregion
		
		#region PoNotifyUrl
		private System.String poNotifyUrl;
		/// <summary>	 
		/// 接收通知URL
		/// </summary>
		public System.String PoNotifyUrl
		{
			get{ return poNotifyUrl; }
			set{ poNotifyUrl= value; }
		}
		#endregion

	}
}
